package com.company;

public class L_Triangle1 extends L_AbstractShape {
    public L_Triangle1(int width,int height)
    {
        super(width, height);
    }
    //重写父类中的抽象方法，实现计算三角形面积的功能
    @Override
    public double area()
    {
        return 0.5*width*height;
    }
}
